cmake_minimum_required(VERSION 3.10)

#project(ProtocolEngine)

#日志模块(库)
# add_subdirectory(./logger)

#配置管理
# add_subdirectory(./settings)

#数据库处理模块(库)
add_subdirectory(./db)

#全局通用方法(库)
add_subdirectory(./common)

# #串口代理程序
# add_subdirectory(./serialProxy)

# #数据中心通信
# add_subdirectory(./datacenter)

# #iec104北向通信
# add_subdirectory(./iec104)

# #HPLC通信模块
# add_subdirectory(./HPLCProxy)

# #modbus协议引擎 (库)
# add_subdirectory(./modbus)

# #DL/T645协议引擎 (库)
# add_subdirectory(./dlt645)

# #DL/T698协议引擎 (库)
# add_subdirectory(./dlt698)

# #北向管理模块(程序)
# add_subdirectory(./north)

# #协议引擎管理模块(程序)
add_subdirectory(./ped)

# #升级管理模块(程序)
# add_subdirectory(./upgrade)

#for multithreaded compilation
# add_dependencies(settings logger)
# add_dependencies(db logger)
# add_dependencies(common logger)
# add_dependencies(serialproxy common)
# add_dependencies(datacenter common)
# add_dependencies(iec104 common)
# add_dependencies(modbus common)
# add_dependencies(dlt645 common)
# add_dependencies(dlt698 common)
# add_dependencies(hplcproxy common)
# add_dependencies(north_dlt698 common datacenter)
# add_dependencies(upgrade common)
# add_dependencies(pemd settings serialproxy hplcproxy datacenter iec104 modbus dlt645 dlt698 north_dlt698 upgrade)
